package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.Booking;
import com.cdck.safe.dete.model.entity.ResourceRecord;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import com.cdck.safe.dete.model.query.ResourceRecordQuery;
import com.cdck.safe.dete.model.vo.ResourceRecordVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (ResourceRecord)表服务接口
 *
 * @author wp
 * @since 2024-05-18 14:35:52
 */
public interface ResourceRecordService extends IService<ResourceRecord> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<ResourceRecordVO> queryByPage(ResourceRecordQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param id
     * @return
     */
    ResourceRecord getResourceRecordFormData(Long id);

    /**
     * 新增数据
     *
     * @param resourceRecord ResourceRecord对象
     * @return
     */
    boolean saveResourceRecord (ResourceRecord resourceRecord);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramresourceRecord ResourceRecord对象
     * @return
     */
    boolean updateResourceRecord(Long id, ResourceRecord resourceRecord);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteResourceRecords(String idsStr);

    boolean overrule(ResourceRecord booking);

    boolean pass(Long id);

    boolean cancel(Long id);

    boolean finish(Long id);

    IPage<ResourceRecordVO> queryList(ResourceRecordQuery queryParams);

    List<ResourceRecordVO> myRecord();
}
